$OpenBSD: patch-src_Makefile_in,v 1.2 2009/06/07 00:08:32 jasper Exp $
--- src/Makefile.in.orig	Mon May 30 19:08:33 2005
+++ src/Makefile.in	Tue Jun  2 11:49:45 2009
@@ -249,9 +249,9 @@ qhacc_cli_SOURCES = qhacccli.cpp
 noinst_HEADERS = qhaccview.h qhaccrecwin.h qhaccdialogs.h qhaccacctchsr.h transeditor.h qhaccwidget.h qhaccgrwin.h qhaccsubsetwin.h qhaccjrnlchsr.h qhacccli.h qhacclineedits.h splitdialog.h copystore.h guiconstants.h qhacclistview.h qhaccacctbox.h qhaccacctboxchsr.h qhaccacctdlg.h qhaccprefdlg.h metadialog.h
 EXTRA_DIST = lupdate.info
 SUBDIRS = pixmaps
-INCLUDES = $(all_includes) -I$(QTINCDIR) -I$(top_srcdir)/lib
-qhacc_gui_LDFLAGS = -L$(QTLIBDIR) -L$(top_builddir)/lib $(LDFLAGS) -L.
-qhacc_cli_LDFLAGS = -L$(QTLIBDIR) -L$(top_builddir)/lib $(LDFLAGS) -L.
+INCLUDES = -I$(top_srcdir)/lib $(all_includes) -I$(QTINCDIR)
+qhacc_gui_LDFLAGS = -L$(top_builddir)/lib -L. -L$(QTLIBDIR) $(LDFLAGS) -lX11 -lGL
+qhacc_cli_LDFLAGS = -L$(top_builddir)/lib -L. -L$(QTLIBDIR) $(LDFLAGS) -lX11 -lGL 
 
 #qhacc_gui_LDADD =	-l$(QHACCQT) -lqhacc -lqhaccutils -lmpatrol -lbfd -liberty
 qhacc_gui_LDADD = -l$(QHACCQT) -lqhacc -lqhaccutils
